CC=g++
CFLAGS=-c -Wall `wx-config --cxxflags` -g
LDFLAGS=
SOURCES=motion.cpp estdialog1.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=motionest
LIBS=-lm `wx-config --libs`


all: $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS)
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@ $(LIBS)

.cpp.o:
	$(CC) $(CFLAGS) $< -o $@
clean:
	rm -f *.o core *.core $(EXECUTABLE) *~
